package com.qboot.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.qboot.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * 角色 实体类
 *
 * @author Tellsea
 * @date 2022-12-17
 */
@Data
@ApiModel("角色")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysRole extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 角色名称
     */
    @Excel(name = "角色名称")
    private String roleName;
    /**
     * 角色标识
     */
    @Excel(name = "角色标识")
    private String roleKey;
    /**
     * 角色描述
     */
    @Excel(name = "角色描述")
    private String description;
    /**
     * 数据状态 1-正常 2-删除
     */
    @TableLogic
    @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteStatus;
}
